using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace LHS.Core.TableInfo
{
    public class InfoBackup
    {
        public const string BCKISN = "bckISN";
        public const string FREQTYPE = "freqType";
        public const string FREQINTERVAL = "freqInterval";
        public const string FREQSUBDAYTYPE = "freqSubdayType";
        public const string FREQSUBDAYINTERVAL = "freqSubdayInterval";
        public const string ACTIVESTARTTIME = "activeStartTime";
        public const string ACTIVEENDTIME = "activeEndTime";
        public const string FREQRECURRENCEFACTOR = "freqRecurrenceFactor";

        public const string FILEPATH = "filepath";
        public const string FILENAME = "fileName";

        public const string TABLENAME = "BackupInfo";

        public static DataTable GetStructure()
        {
            DataTable dt = new DataTable();
            dt.Columns.Add(BCKISN, typeof(int));
            dt.Columns.Add(FREQTYPE, typeof(int));
            dt.Columns.Add(FREQINTERVAL, typeof(int));
            dt.Columns.Add(FREQSUBDAYTYPE, typeof(int));
            dt.Columns.Add(FREQSUBDAYINTERVAL, typeof(int));
            dt.Columns.Add(ACTIVESTARTTIME, typeof(int));
            dt.Columns.Add(ACTIVEENDTIME, typeof(int));
            dt.Columns.Add(FREQRECURRENCEFACTOR, typeof(int));

            dt.TableName = TABLENAME;
            return dt;
        }

    }
}
